home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmDisableMiscExample
- BorderStyle = 1 'Fixed Single
- Caption = "DisableMisc Example"
- ClientHeight = 3525
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5130
- Height = 3930
- Left = -15
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 3525
- ScaleWidth = 5130
- Top = -15
- Width = 5250
- Begin VB.CommandButton cmdExit
- Caption = "E&xit"
- Height = 375
- Left = 120
- TabIndex = 10
- Top = 3120
- Width = 4935
- End
- Begin VB.CommandButton cmdSaveSettings
- Caption = "Disable Save Settings On Exit"
- Height = 495
- Left = 2640
- TabIndex = 9
- Top = 2520
- Width = 2415
- End
- Begin VB.CommandButton cmdEntireNetwork
- Caption = "Disable Entire Network in Network Neighborhood"
- Height = 495
- Left = 120
- TabIndex = 8
- Top = 720
- Width = 2415
- End
- Begin VB.CommandButton cmdNetHood
- Caption = "Disable Network Neighborhood"
- Height = 495
- Left = 2640
- TabIndex = 7
- Top = 120
- Width = 2415
- End
- Begin VB.CommandButton cmdDrives
- Caption = "Disable Drives"
- Height = 495
- Left = 120
- TabIndex = 6
- Top = 120
- Width = 2415
- End
- Begin VB.CommandButton cmdSingleMSDOSPrograms
- Caption = "Disable Single-Mode MSDOS Programs"
- Height = 495
- Left = 120
- TabIndex = 5
- Top = 2520
- Width = 2415
- End
- Begin VB.CommandButton cmdMSDOS
- Caption = "Disable MSDOS"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 1920
- Width = 2415
- End
- Begin VB.CommandButton cmdRegistryTools
- Caption = "Disable Registry Tools"
- Height = 495
- Left = 2640
- TabIndex = 3
- Top = 1920
- Width = 2415
- End
- Begin VB.CommandButton cmdPrintSharing
- Caption = "Disable Printer Sharing"
- Height = 495
- Left = 2640
- TabIndex = 2
- Top = 1320
- Width = 2415
- End
- Begin VB.CommandButton cmdFileSharing
- Caption = "Disable File Sharing"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 1320
- Width = 2415
- End
- Begin VB.CommandButton cmdPasswordCaching
- Caption = "Disable Password Caching"
- Height = 495
- Left = 2640
- TabIndex = 0
- Top = 720
- Width = 2415
- End
- Begin DisablePro.DisableMisc DisableMisc1
- Left = 1680
- Top = 2760
- _ExtentX = 900
- _ExtentY = 926
- End
- Attribute VB_Name = "frmDisableMiscExample"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdDrives_Click()
- If cmdDrives.Caption = "Disable Drives" Then
- DisableMisc1.DisableDrives = True
- cmdDrives.Caption = "Enable Drives"
- Else
- cmdDrives.Caption = "Disable Drives"
- DisableMisc1.DisableDrives = False
- End If
- End Sub
- Private Sub cmdEntireNetwork_Click()
- If cmdEntireNetwork.Caption = "Disable Entire Network in Network Neighborhood" Then
- DisableMisc1.DisableEntireNetwork = True
- cmdEntireNetwork.Caption = "Enable Entire Network in Network Neighborhood"
- Else
- cmdEntireNetwork.Caption = "Disable Entire Network in Network Neighborhood"
- DisableMisc1.DisableEntireNetwork = False
- End If
- End Sub
- Private Sub cmdExit_Click()
- End
- End Sub
- Private Sub cmdFileSharing_Click()
- If cmdFileSharing.Caption = "Disable File Sharing" Then
- DisableMisc1.DisableFileSharing = True
- cmdFileSharing.Caption = "Enable File Sharing"
- Else
- cmdFileSharing.Caption = "Disable File Sharing"
- DisableMisc1.DisableFileSharing = False
- End If
- End Sub
- Private Sub cmdMSDOS_Click()
- If cmdMSDOS.Caption = "Disable MSDOS" Then
- DisableMisc1.DisableMSDOS = True
- cmdMSDOS.Caption = "Enable MSDOS"
- Else
- cmdMSDOS.Caption = "Disable MSDOS"
- DisableMisc1.DisableMSDOS = False
- End If
- End Sub
- Private Sub cmdNetHood_Click()
- If cmdNetHood.Caption = "Disable Network Neighborhood" Then
- DisableMisc1.DisableNetHood = True
- cmdNetHood.Caption = "Enable Network Neighborhood"
- Else
- cmdNetHood.Caption = "Disable Network Neighborhood"
- DisableMisc1.DisableNetHood = False
- End If
- End Sub
- Private Sub cmdPasswordCaching_Click()
- If cmdPasswordCaching.Caption = "Disable Password Caching" Then
- DisableMisc1.DisablePasswordCaching = True
- cmdPasswordCaching.Caption = "Enable Password Caching"
- Else
- cmdPasswordCaching.Caption = "Disable Password Caching"
- DisableMisc1.DisablePasswordCaching = False
- End If
- End Sub
- Private Sub cmdPrintSharing_Click()
- If cmdPrintSharing.Caption = "Disable Printer Sharing" Then
- DisableMisc1.DisablePrinterSharing = True
- cmdPrintSharing.Caption = "Enable Printer Sharing"
- Else
- cmdPrintSharing.Caption = "Disable Printer Sharing"
- DisableMisc1.DisablePrinterSharing = False
- End If
- End Sub
- Private Sub cmdRegistryTools_Click()
- If cmdRegistryTools.Caption = "Disable Registry Tools" Then
- DisableMisc1.DisableRegistryTools = True
- cmdRegistryTools.Caption = "Enable Registry Tools"
- Else
- cmdRegistryTools.Caption = "Disable Registry Tools"
- DisableMisc1.DisableRegistryTools = False
- End If
- End Sub
- Private Sub cmdSaveSettings_Click()
- If cmdSaveSettings.Caption = "Disable Save Settings On Exit" Then
- DisableMisc1.DisableSaveSettings = True
- cmdSaveSettings.Caption = "Enable Save Settings On Exit"
- Else
- cmdSaveSettings.Caption = "Disable Save Settings On Exit"
- DisableMisc1.DisableSaveSettings = False
- End If
- End Sub
- Private Sub cmdSingleMSDOSPrograms_Click()
- If cmdSingleMSDOSPrograms.Caption = "Disable Single-Mode MSDOS Programs" Then
- DisableMisc1.DisableSingleMSDOSPrograms = True
- cmdSingleMSDOSPrograms.Caption = "Enable Single-Mode MSDOS Programs"
- Else
- cmdSingleMSDOSPrograms.Caption = "Disable Single-Mode MSDOS Programs"
- DisableMisc1.DisableSingleMSDOSPrograms = False
- End If
- End Sub
-